<script>
import $http from './utils/http/index.js'
import $common from './utils/function/common'

export default {
  globalData: {
    $http: $http,
    $common: $common,
    now_version: '1.0',
    use_car_onShow: true
  },

  onLaunch: function () {
    //#ifdef APP-PLUS
    plus.screen.lockOrientation('portrait-primary'); // 强制竖屏
    //#endif
  }
}
</script>

<style lang="scss">
page {
  font-size: 28rpx;
  background: #f5f5f5;
}

/*每个页面公共css */
.common-price {
  color: #F0502D;
  font-size: 32rpx;
  //font-weight: bold;

  .small {
    font-size: 28rpx;
    font-weight: 400;
  }
}

checkbox {
  transform: scale(1);
}

//设置圆角
checkbox.round .wx-checkbox-input,
checkbox.round .uni-checkbox-input {
  border-radius: 50%;
}

//设置背景色
checkbox.color[checked] .wx-checkbox-input,
checkbox.color.checked .uni-checkbox-input {
  background-color: #32A4FF !important;
  border-color: #32A4FF !important;
  color: #ffffff !important;
}

// scroll-view隐藏滚动条
::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  color: transparent !important;
  display: none;
}

::v-deep.uni-scroll-view.uni-scroll-view::-webkit-scrollbar {
  display: none;
}

.upload-box {
  display: flex;
  width: 400rpx;
  height: 240rpx;
  justify-content: center;
  align-items: center;
  border: 2rpx solid #515151;
  margin-bottom: 20rpx;

  .upload-img {
    width: 150rpx;
    height: 150rpx;
  }
}

#mask {
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  filter: alpha(opacity=100);
  opacity: 1;
  display: block;
  overflow: hidden;
  z-index: 99999;

  .mask-content {
    display: flex;
    position: fixed;
    padding: 20rpx 20rpx 240rpx 20rpx;
    width: calc(100% - 40rpx);
    left: 0;
    bottom: 0;
    z-index: 999999;
    flex-direction: column;
    background: #fff;
    height: 430rpx;
    border-radius: 28rpx 28rpx 0 0;

    .main-content {
      padding: 20rpx 40rpx;

      .title {
        font-size: 32rpx;
        text-align: center;
      }

      .avatar-btn {
        margin-top: 60rpx;
        background-color: white;

        .btnImg {
          width: 120rpx;
          height: 120rpx;
          border-radius: 60rpx;
        }
      }

      .avatar-btn::after {
        border: 0;
      }

      .row {
        display: flex;
        width: 100%;
        align-items: center;
        padding: 10rpx 0;
        border-top: 1rpx solid #e5e5e5;
        border-bottom: 1rpx solid #e5e5e5;

        .left {
          width: 120rpx;
        }

        .mobile {
          padding: 20rpx;
        }

        .input {
          border: none;
          padding: 20rpx;
          border-radius: 20rpx;
          text-align: right;
          flex: 1;
        }

        .mobile-btn {
          color: #fff;
          background: #0bbe67;
          width: 35%;
          font-size: 28rpx;
          margin-left: 20rpx;
        }

      }

      .btn-box {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-top: 40rpx;

        .button {
          font-size: 32rpx;
          flex: 1;
          text-align: center;
          border-radius: 50rpx;
        }

        .cancel {
          background: #9d9b9b;
          padding: 20rpx 40rpx;
          color: #fff;
        }

        .save {
          background: #32A4FF;
          color: #fff;
          margin-left: 40rpx;
          border: none;
          outline: none;
        }
      }

    }

    .agree-box {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;

      .agree-btn {
        margin: 0;
        padding: 0;
        position: static;
      }

      .agree-btn::after {
        border: 0;
        content: none;
      }

      .box {
        font-size: 26rpx;
        color: #666;

        .text {
          color: #32A4FF;
        }
      }
    }
  }
}

#prove-mask {
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  filter: alpha(opacity=100);
  opacity: 1;
  display: block;
  overflow: hidden;
  z-index: 99999;

  .prove-mask-content {
    display: flex;
    position: fixed;
    padding: 20rpx 20rpx 240rpx 20rpx;
    width: 70%;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    z-index: 999999;
    flex-direction: column;
    background: #fff;
    height: 240rpx;
    border-radius: 10rpx;

    .prove-main-content {
      padding: 60rpx 40rpx;
      position: relative;
      .prove-close{
        position: absolute;
        right: 0;
        top: 0;
        width: 40rpx;
        height: 40rpx;
      }

      .prove-box {
        margin-bottom: 70rpx;
        margin-top: 40rpx;

        .line {
          display: flex;
          align-items: flex-start;
          justify-content: space-between;

          .icon1{
            width: 50rpx;
            height: 50rpx;
          }
          .icon2{
            width: 20rpx;
            height: 36rpx;
            margin-top: 6rpx;
          }

          .text-box{
            flex: 1;
            margin: 0 20rpx;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            .text {
              font-size: 36rpx;
              margin-bottom: 30rpx;
            }
            .desc-text{
              color: #3D3D3D;
              font-size: 24rpx;
            }
          }
        }
      }
    }

  }
}


</style>
